﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace sy1_6
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            textBox1.Text = "欢迎学习C#。NET，需要认真学习才行。";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Font = new Font("隶书",20);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            textBox1.Font = new Font("宋体", 9);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            textBox2.Text = textBox1.SelectedText;
            textBox2.Font = textBox1.Font;
        }
    }
}
